﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Data.SqlClient;

/// <summary>
/// Summary description for AdminDAL
/// </summary>
public class AdminDAL
{
    DataAccess db = new DataAccess();
	public AdminDAL()
	{
		//
		// TODO: Add constructor logic here
		//
	}
    public DataTable GetAdminByUserNameAndPass(string username, string pass)
    {
        SqlParameter[] paramList = new SqlParameter[2];

        paramList[0] = new SqlParameter("@UserName", SqlDbType.VarChar, 50);
        paramList[0].Value = username;

        paramList[1] = new SqlParameter("@Password", SqlDbType.VarChar, 20);
        paramList[1].Value = pass;

        return db.executeSelect("GetAdminByUserAndPass", paramList);
    }
}